/* 生长调控页面样式 */
.growth-sidebar {
    width: 300px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.crop-info {
    margin-bottom: 2rem;
}

.crop-select {
    margin: 1rem 0;
}

.crop-select select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f8f9fa;
}

.growth-stage {
    margin-top: 1.5rem;
}

.stage-progress {
    background: #f0f0f0;
    border-radius: 10px;
    height: 20px;
    margin: 1rem 0;
    overflow: hidden;
}

.stage-bar {
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: white;
    font-size: 0.8rem;
}

.stage-info {
    color: #666;
    font-size: 0.9rem;
}

/* 生长指标样式 */
.indicator-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin: 0.5rem 0;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.indicator-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.indicator-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
}

/* 环境参数调控面板 */
.environment-controls {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.param-control {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.2rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.param-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.param-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.param-title i {
    color: #3498db;
    font-size: 1.2rem;
}

.param-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin: 1rem 0;
}

.param-range {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* 控制按钮组 */
.control-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.btn-control {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-control.decrease {
    background: #e74c3c;
    color: white;
}

.btn-control.increase {
    background: #2ecc71;
    color: white;
}

.btn-control:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-control:active {
    transform: translateY(0);
}

/* 参数状态指示器 */
.param-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.param-status.optimal {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.param-status.warning {
    background: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
}

.param-status.critical {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

/* 实时趋势图表 */
.param-chart {
    height: 120px;
    margin: 1rem 0;
}

/* 参数调节滑块 */
.param-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    margin: 1rem 0;
}

.param-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    transition: all 0.2s ease;
}

.param-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* 自动控制开关 */
.auto-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.auto-control label {
    color: #666;
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .control-grid {
        grid-template-columns: 1fr;
    }
    
    .param-control {
        padding: 1rem;
    }
    
    .param-value {
        font-size: 1.5rem;
    }
}

/* 生长趋势图表 */
.growth-charts {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.growth-chart {
    height: 400px;
    margin-top: 1rem;
}

/* 智能建议样式 */
.advice-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.advice-card {
    padding: 1.5rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.advice-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.advice-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.priority-high { border-left: 4px solid #f44336; }
.priority-medium { border-left: 4px solid #ff9800; }
.priority-low { border-left: 4px solid #4caf50; }

/* 生长趋势分析样式 */
.growth-analysis {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-controls {
    display: flex;
    gap: 15px;
}

.chart-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.growth-chart {
    width: 100%;
    height: 400px;
    margin-bottom: 20px;
}

.growth-metrics {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-top: 1px solid #eee;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.metric-label {
    font-size: 14px;
    color: #666;
}

.metric-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.metric-value.status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 14px;
}

.status.optimal {
    background-color: #e6f4ea;
    color: #1e8e3e;
}

.status.warning {
    background-color: #fef7e0;
    color: #f2994a;
}

.status.critical {
    background-color: #fce8e6;
    color: #d93025;
}

/* 作物选择区域样式 */
.crop-selector {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.crop-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.crop-option {
    flex: 1;
    min-width: 120px;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.crop-option:hover {
    border-color: #3498db;
    transform: translateY(-2px);
}

.crop-option.active {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.crop-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.crop-name {
    font-weight: 500;
    color: #2c3e50;
}

/* 生长阶段指示器 */
.growth-stages {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.stage-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 2rem 0;
}

.stage-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #ddd;
    transform: translateY(-50%);
    z-index: 1;
}

.stage-point {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stage-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 2px solid #ddd;
}

.stage-point.active .stage-dot {
    background: #3498db;
    border-color: #3498db;
}

.stage-point.completed .stage-dot {
    background: #2ecc71;
    border-color: #2ecc71;
}

.stage-label {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.stage-point.active .stage-label {
    color: #3498db;
    font-weight: 500;
} 